import http from "@/http";


export default {

    select: {
        name: "查询角色",
        path: "/api/roles",
        call: async function (params: any = {}) {

            return await http.get(this.path, params)
        }

    },
    add: {
        name: "新增角色",
        path: "/api/roles",
        call: async function (params: any = {}) {

            return await http.post(this.path, params)
        }

    },
    update: {
        name: "修改角色",
        path: "/api/roles",
        call: async function (params: any = {}) {

            return await http.put(this.path, params)
        }

    },
    delete: {
        name: "删除角色",
        path: "/api/roles",
        call: async function (params: any = {}) {

            return await http.delete(this.path, params)
        }

    }




}